﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace Peer
{
    public readonly struct PeerResponse
    {

        internal PeerResponse(BaseConverter converter, Guid id, PackageType packageType, Stream data)
        {
            this.converter = converter;
            this.Id = id;
            this.Data = data;
            this.PackageType = packageType;
        }

        internal readonly BaseConverter converter;

        internal readonly PackageType PackageType;

        /// <summary>
        /// 可空
        /// </summary>
        internal readonly Stream Data;

        internal readonly Guid Id;
    }
}
